package com.lagou.controller;


import com.lagou.config.MyConfig;
import com.lagou.pojo.Person;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpMethod;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;

@RestController
@RequestMapping("/hello")
@Slf4j
public class HelloController {

    private final Person person;
    @Autowired
    HelloController(Person person) {
        this.person = person;
    }
    @RequestMapping("/boot")
    public String hello(){
        log.info(person.toString());
        return "你好,Spring Boot111!";
    }

}
